package com.companion.companion.domain;


import java.util.Date;

/**
 * 用户信息对象 user
 * 
 * @author zly
 * @date 2025-05-06
 */
public class User
{

    /** 用户ID */
    private Long userId;

    /** 用户名 */
    private String username;

    /** 用户密码 */
    private String password;

    /** 用户姓名 */
    private String name;

    /** 性别（0男，1女） */
    private Long gender;

    /** 年龄 */
    private Long age;

    /** 联系电话 */
    private String phone;

    /** 邮箱地址 */
    private String email;

    /** 居住地址 */
    private String address;
    /** 病例简介 */
    private String caseInfo;
private Date createTime;


    public User() {
    }

    public User(Long userId, String username, String password, String name, Long gender, Long age, String phone, String email, String address, Date createTime) {
        this.userId = userId;
        this.username = username;
        this.password = password;
        this.name = name;
        this.gender = gender;
        this.age = age;
        this.phone = phone;
        this.email = email;
        this.address = address;
        this.createTime = createTime;
    }

    public User(Long userId, String username, String password, String name, Long gender, Long age, String phone, String email, String address, String caseInfo, Date createTime) {
        this.userId = userId;
        this.username = username;
        this.password = password;
        this.name = name;
        this.gender = gender;
        this.age = age;
        this.phone = phone;
        this.email = email;
        this.address = address;
        this.caseInfo = caseInfo;
        this.createTime = createTime;
    }

    /**
     * 获取
     * @return userId
     */
    public Long getUserId() {
        return userId;
    }

    /**
     * 设置
     * @param userId
     */
    public void setUserId(Long userId) {
        this.userId = userId;
    }

    /**
     * 获取
     * @return username
     */
    public String getUsername() {
        return username;
    }

    /**
     * 设置
     * @param username
     */
    public void setUsername(String username) {
        this.username = username;
    }

    /**
     * 获取
     * @return password
     */
    public String getPassword() {
        return password;
    }

    /**
     * 设置
     * @param password
     */
    public void setPassword(String password) {
        this.password = password;
    }

    /**
     * 获取
     * @return name
     */
    public String getName() {
        return name;
    }

    /**
     * 设置
     * @param name
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * 获取
     * @return gender
     */
    public Long getGender() {
        return gender;
    }

    /**
     * 设置
     * @param gender
     */
    public void setGender(Long gender) {
        this.gender = gender;
    }

    /**
     * 获取
     * @return age
     */
    public Long getAge() {
        return age;
    }

    /**
     * 设置
     * @param age
     */
    public void setAge(Long age) {
        this.age = age;
    }

    /**
     * 获取
     * @return phone
     */
    public String getPhone() {
        return phone;
    }

    /**
     * 设置
     * @param phone
     */
    public void setPhone(String phone) {
        this.phone = phone;
    }

    /**
     * 获取
     * @return email
     */
    public String getEmail() {
        return email;
    }

    /**
     * 设置
     * @param email
     */
    public void setEmail(String email) {
        this.email = email;
    }

    /**
     * 获取
     * @return address
     */
    public String getAddress() {
        return address;
    }

    /**
     * 设置
     * @param address
     */
    public void setAddress(String address) {
        this.address = address;
    }

    /**
     * 获取
     * @return createTime
     */
    public Date getCreateTime() {
        return createTime;
    }

    /**
     * 设置
     * @param createTime
     */
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String toString() {
        return "User{userId = " + userId + ", username = " + username + ", password = " + password + ", name = " + name + ", gender = " + gender + ", age = " + age + ", phone = " + phone + ", email = " + email + ", address = " + address + ", createTime = " + createTime + "}";
    }

    /**
     * 获取
     * @return caseInfo
     */
    public String getCaseInfo() {
        return caseInfo;
    }

    /**
     * 设置
     * @param caseInfo
     */
    public void setCaseInfo(String caseInfo) {
        this.caseInfo = caseInfo;
    }
}
